package com.anyou.mall.goo.goods.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 商品关联参数
 *
 * @author xiaQ
 * @since 2020-02-23 9:14:33
 */
@Data
@ApiModel(value = "商品参数")
public class GoodsParamsDTO implements Serializable {

    private static final long serialVersionUID = 4892783539320159200L;

    /*@TableField(value = "group_id")
    @ApiModelProperty(value = "分组id")
    private String groupId;*/

    /*@TableField(value = "group_name")
    @ApiModelProperty(value = "参数名称名称")
    private String groupName;*/

    @ApiModelProperty(value = "参数名字 （spu：一对多）")
    private String paramName;

    @ApiModelProperty(value = "商品参数列表")
    private List<GoodsParamsItemDTO> goodsParamsItemDTOList;

    /*    public static void main(String[] args) {
        List<GoodsParamsDTO> str = JSONUtil.toList("[{\"goodsParamsItemDTOList\":[{\"paramName\":\"白色\",\"isIndex\":0,\"sort\":0,\"required\":0,\"paramId\":\"1701415070444232705\",\"paramValue\":\"1\"},{\"paramName\":\"99\",\"isIndex\":0,\"sort\":1,\"required\":0,\"paramId\":\"1701567516197986305\",\"paramValue\":\"wocao\"}],\"groupId\":\"1701415035707006978\",\"groupName\":\"颜色\"}]", GoodsParamsDTO.class);
        System.out.println("str = " + str);

    }*/

}
